﻿CREATE TABLE [dbo].[tbdetallealquiler]
(
    [iddetallealquiler] int not null IDENTITY,
	[idalquiler] INT NOT NULL ,
	 [idetallesolicitud] int,
	 [estado] int,
	constraint FK_IDalquilermustexists foreign key(idalquiler) references tbalquiler(idalquiler), 
    CONSTRAINT [FK_detallesolicitudmustexists] FOREIGN KEY (idetallesolicitud) 
	REFERENCES tbdetallesolicitud(idetallesolicitud), 
    CONSTRAINT [PK_tbdetallealquiler] PRIMARY KEY ([iddetallealquiler])
)
